package cn.slipi.admin.service;

import cn.slipi.admin.entity.CsmGrant;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 消费者接口授权表 服务类
 * </p>
 *
 * @author lee
 * @since 2020-12-01
 */
public interface CsmGrantService extends IService<CsmGrant> {
    CsmGrant getGrantById(Integer id);

    List<CsmGrant> getGrantListByCsmId(Integer csmId);

    List<CsmGrant> getGrantListByPdrApiId(Integer pdrApiId);

    List<CsmGrant> updateEnableByCsmId(Integer csmId, Integer enable);
}
